<div class="layui-header">
    <div class="layui-logo">{:C('APP_NAME')}-管理后台</div>
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
        <volist name="_appList" id="app" offset="0" length="4">
            <li class="layui-nav-item <if condition='$app["id"] == $_app["id"]'>layui-this</if>"><a href="/app/{$app.url}/index/index">{$app.title}</a></li>
        </volist>
        <if condition="count($_appList) gt 4">
            <li class="layui-nav-item">
                <a href="javascript:;">其它功能</a>
                <dl class="layui-nav-child">
                    <volist name="_appList" id="app" offset='4'>
                    <dd><a href="/app/{$app.url}/index/index">{$app.title}</a></dd>
                    </volist>
                </dl>
            </li>
        </if>
    </ul>
    <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item" id="msgNav">
        </li>
        <li class="layui-nav-item">
            <a href="/space">
                <img src="{:format_user_photo(session('user.id'))}" class="layui-nav-img">
                {:session('user.nickname')}
            </a>
            <dl class="layui-nav-child">
                <dd><a href="/space/info/">基本资料</a></dd>
                <dd><a href="/space/password/">修改密码</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item"><a href="{:C('AUTH.LOGOUT')}">退了</a></li>
    </ul>
</div>